POINT CAMERA

This command will point the camera to a point in 3D space.

  Syntax
POINT CAMERA X, Y, Z
POINT CAMERA Camera Number, X, Y, Z
  Parameters
Camera Number
Integer
The camera number
X
Float
The x position
Y
Float
Specify the Y position value.
Z
Float
Specify the Z position value.

  Returns

This command does not return a value.

  Description

The coordinates should be real numbers.

  Example Code
autocam on
make matrix 1,4000,4000,100,100
set matrix height 1,50,50,500
update matrix 1
set camera rotation xyz
position camera 0,0,100,-500
while mouseclick()<>1
x#=cos(a#)*500 : z#=sin(a#)*500
a#=a#+1.0 : if a#>359 then a#=a#-360
position camera 0,x#,100,z#
point camera 0,500,0,500
endwhile
while mouseclick()=1:endwhile
delete matrix 1:autocam off
end
  See also

CAMERA Commands Menu
Index